#include "waste.h"
#include "BlocksMatrix.h"

waste::waste(CBlocksMatrix* pParent) : CTetrad(pParent,chatthaivat)
{
}

waste::~waste()
{
}

bool waste::Rotate()
{
	
	return true;
}

bool waste::MoveLeft()
{
	return true;
}

bool waste::MoveRight()
{
	
	return true;
}

bool waste::MoveDown()
{
	bool bSuccess = false;
	
			m_iYPos++;
			bSuccess = true;
	
	return bSuccess;
}

void waste::Draw()
{
	int screenX=0, screenY=0; 

		m_pParentMatrix->GetScreenPosFromCell(m_iXPos-1,m_iYPos,screenX,screenY);
		m_pBlockImg->BlitImage(screenX,screenY);
}

void waste::DrawOnScreen(const TRectanglei& rect)
{
	int XPos = (rect.GetWidth() - 4*BLOCK_WIDTH)/2 + rect.m_Left;
	int YPos = (rect.GetHeight() - 1*BLOCK_HEIGHT)/2 + rect.m_Top;
	m_pBlockImg->BlitImage(XPos,YPos);
}

void waste::FillMatrix()
{

}

bool waste::IsValid()
{
	bool bValid = false;
	
		bValid = true;

	return bValid;
}
